<%--
  Created by IntelliJ IDEA.
  User: guozhenpeng
  Date: 2020/12/10
  Time: 19:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="path" value="${pageContext.request.contextPath}"/>
<%String path = request.getContextPath();%>
<li>
    <div  height="100px" width="1000px">
    <c:forEach items="${requestScope.cars}" var="car" >

    <div style="float:left"  class="list-infoBox"> <a  title="" target="_blank" class="imgtype" href="${pageContext.request.contextPath}/web/info?carId=${car.id}" value=""> <img width="290" height="194" src="${path}/static/img/carimg.jpg" alt=""></a>
        <p class="infoBox"> <a  title="${car.carname}" href="infor.html" target="_blank" class="info-title">${car.carname}</a> </p>
        <p class="fc-gray"> <span class="tag-gray">石家庄</span> <span class="">${car.carname}</span> <em class="shuxian">|</em> 行驶${car.km} </p>
        <p class="priType-s"> <span> <i class="fc-org priType"> ${car.price} </i> </span> <s>${car.price}</s> </p>
    </div>
    </c:forEach>
    </div>
</li>
<div  >
<div style="float:left" class="pages">
<c:forEach begin="1" end="${requestScope.pager.pageCount}" var="i">
    <c:if test="${requestScope.pager.pageNum eq i}" var="isCur">
        <span class="current">${i}</span>
    </c:if>

    <c:if test="${not isCur}">
        <a class="on" href="#">${i}</a>
    </c:if>

</c:forEach>



    <a class="on" href="#">${requestScope.pager.dataCount}</a>条
    <a class="on" href="#">${requestScope.pager.pageNum}</a>
    <a class="on" href="#">${requestScope.pager.pageCount}</a>
</div>
</div>